<#include "../../common/commonattribute.html"/>
<script>
    $(document).on('bjui.beforeCloseDialog', function(e) {
        $(".search-menu").click();
    })
</script>
<div class="bjui-pageContent">

    <form action="${ctx}/frame/menu/save" id="familyMemberDialog" data-no-check="true" name="familyForm"
          data-toggle="validate" data-alertmsg="false" data-isrefsh="false" data-callback="fmDialogClose"
          data-rule="required">
        <div style="margin:25px auto 0; width:500px;">

                <input type="hidden" name="id" value="${entity.id!}"/>
                <table width="100%"  class="table table-condensed table-hover">
                    <tr>
                        <td class="right"><span style="color:red">*</span>菜单名称</td>
                        <td class="left"><input type="text" name="menuName" data-rule="required" value="${entity.menuName!}"></td>
                    </tr>

                    <tr>
                        <td class="right"><span style="color:red">*</span>菜单编码</td>
                        <td class="left"><input type="text" name="menuCode" data-rule="required" value="${entity.menuCode!}"></td>
                    </tr>
                    <tr>
                        <td class="right"><span style="color:red">*</span>父菜单</td>
                        <td class="left"><select   data-toggle="selectpicker" data-rule="required" name="supperId" data-rule="required" class="selectpicker" data-width="100">
                            <option value="0">无</option>
                        <#if mainMenus??>
                            <#list mainMenus as mainMenu>
                                <option value="${mainMenu.id!}" <#if mainMenu.id??&&mainMenu.id=(entity.supperId!)>selected="true"</#if>>${mainMenu.menuName!}</option>
                            </#list>
                        </#if>
                        </select></td>
                    </tr>
                    <tr>
                        <td class="right"><span style="color:red">*</span>菜单图标</td>
                        <td class="left"><input type="text" id="menuClass" value="${entity.iconClass!}" name="iconClass" data-rule="required" data-id="test" data-toggle="lookup" data-url="${ctx}/common/fontChose" data-group="custom" data-width="800" data-height="600">&nbsp;&nbsp;<i class="showIcon"></i></td>
                    </tr>
                    <tr>
                        <td class="right"><span style="color:red">*</span>菜单地址</td>
                        <td class="left"><input type="text" name="url" size="30" value="${entity.url!}"></td>
                    </tr>
                    <tr>
                        <td class="right"><span style="color:red">*</span>是否开启</td>
                        <td> <input type="radio" name="isOpen" id="j_custom_sex1" data-toggle="icheck" value="true" data-label="开&nbsp;&nbsp;"  <#if entity.isOpen??&&entity.isOpen=="true">checked</#if>>
                            <input type="radio" name="isOpen" id="j_custom_sex2" data-toggle="icheck" value="false" data-label="关"  <#if entity.isOpen??&&entity.isOpen=="false">checked</#if>></td>

                    </tr>
                    <tr>
                    <td class="right"><span style="color:red">*</span>是否主菜单</td>
                    <td> <input type="radio" name="isMain"  data-toggle="icheck" value="true" data-label="是&nbsp;&nbsp;"  <#if entity.isMain??&&entity.isMain=="true">checked</#if>>
                        <input type="radio" name="isMain" data-toggle="icheck" value="false" data-label="否"  <#if entity.isMain??&&entity.isMain=="false">checked</#if>></td>

                </tr>



                </table>

        </div>
    </form>

</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-default">保存</button></li>
    </ul>
</div>